var n = '';
$.extend({
   addfileds:{
       changeAttr:function(th,name){
           $('div .success').attr('class','notification information');
           $(th).attr('class','notification success');
           n = name;
       },
       putData:function(u){
           var filedName = $('#filedName').val();
           var filedNameCN = $('#filedNameCN').val();
           var wid = $('#wid').val();
           if(n == '' || filedName == '' || filedNameCN == '' || wid == ''){
               $.showMsg('<div class="notification error png_bg"><div>请完整填写表单！</div></div>');
               return;
           }
           $.post(u,{'fName':filedName,'fNameCn':filedNameCN,'Attr':n,'wid':wid},function(data){
               console.log(data);
           });
       }
   }
});